# 路由转换器

from werkzeug.routing import BaseConverter

# 定义转换器
class MobileConverter(BaseConverter):

    regex = "1[3-9]\d{9}"


def register_converters(app):
    app.url_map.converters["re"] = MobileConverter
